﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RulesCore
{
    class NotRule : BaseRule
    {
        //Properties
        private string Result;
        BaseRule Rule;

        public NotRule(BaseRule RuleResult)
        {
            this.Rule = RuleResult;
        }

        public override bool ChekRule()
        {
            return (!Rule.ChekRule());
            
        }
    }
}
